import request from '@/utils/request';
//报表——异常原因统计
export async function getErrorReportByPage(params: any) {
  return request('/api/welcome/getErrorReportByPage', {
    method: 'POST',
    data: params,
  });
}
//报表——生产交货能力
export async function getReportformsWorkOrderInforByPage(params: any) {
  return request('/api/welcome/getReportformsWorkOrderInforByPage', {
    method: 'POST',
    data: params,
  });
}
//报表——小组生产力
export async function getReportformsPlantCapacityCalendarByPage(params: any) {
  return request('/api/welcome/getReportformsPlantCapacityCalendarByPage', {
    method: 'POST',
    data: params,
  });
}
//报表——小组生产率
export async function getReportformsPlantCapacityCalendarByPage2(params: any) {
  return request('/api/welcome/getReportformsPlantCapacityCalendarByPage2', {
    method: 'POST',
    data: params,
  });
}
//报表——物料齐套率
export async function getReportformsPickingTaskByPage(params: any) {
  return request('/api/welcome/getReportformsPickingTaskByPage', {
    method: 'POST',
    data: params,
  });
}
//报表——生产文件齐套率
export async function getReportformsWorkOrderInforByPage2(params: any) {
  return request('/api/welcome/getReportformsWorkOrderInforByPage2', {
    method: 'POST',
    data: params,
  });
}
//报表——生产计划达成率
export async function getReportformsProductManufactInforExecuteByPage(params: any) {
  return request('/api/welcome/getReportformsProductManufactInforExecuteByPage', {
    method: 'POST',
    data: params,
  });
}
//报表——线路故障率
export async function getReportformsCabinetQuality(params: any) {
  return request('/api/welcome/getReportformsCabinetQuality', {
    method: 'POST',
    data: params,
  });
}
//报表——客户投诉缺陷率
export async function getReportformsCustomComplaint(params: any) {
  return request('/api/welcome/getReportformsCustomComplaint', {
    method: 'POST',
    data: params,
  });
}
//报表——客户投诉率
export async function getReportformsCustomComplaint2(params: any) {
  return request('/api/welcome/getReportformsCustomComplaint2', {
    method: 'POST',
    data: params,
  });
}
export default {
  getErrorReportByPage,
  getReportformsWorkOrderInforByPage,
  getReportformsPlantCapacityCalendarByPage,
  getReportformsPlantCapacityCalendarByPage2,
  getReportformsPickingTaskByPage,
  getReportformsProductManufactInforExecuteByPage,
  getReportformsCabinetQuality,
  getReportformsCustomComplaint,
  getReportformsWorkOrderInforByPage2,
  getReportformsCustomComplaint2,
};
